package com.fwj.common.dao;

import com.fwj.common.entity.Attachment;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.sql.Timestamp;

/**
 * @Author: fwj
 * @Data: 2022/4/15 19:08
 * @Version 1.0
 * @Description:
 */
public interface AttachmentMapper extends Mapper<Attachment> {

    @Update(value = "UPDATE attach_info SET " +
            "status = #{status} , " +
            "update_time = #{timestamp} " +
            "where " +
            "attach_no = #{attachNo} ")
    void updateAttachmentByAttachNo(String attachNo, Timestamp timestamp, String status);
}
